<?php

if ( ! defined('BASEPATH'))
    exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| USER ROUTES
| -------------------------------------------------------------------------
|
| 
|
| -------------------------------------------------------------------------
*/

// Users

$route['users/:any/add']                      = "backend-users/user/add";
$route['users/:any/edit']                     = "backend-users/user/edit";
$route['users/:any/edit/id/:num']             = "backend-users/user/edit";
$route['users/:any/delete/id/:num']           = "backend-users/user/delete";
$route['users/:any/preview/id/:num']          = "backend-users/user/preview";

$route['users/:any/contents/:any']            = "backend-users/user/users_datatable";

$route['users/:any']                          = "backend-users/user";

// Users API
$route['api/users/:any']                             = "backend-users/user_api";
$route['api/users/:any/:num']                        = "backend-users/user_api/user_by_id";

$route['api/users/:any/:any']                        = "backend-users/user_api";



/* End of file routes.php */
/* Location: ./application/users/backend-users/config/routes.php */